const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //跨域的配置
  devServer: {
    //
    // host: '0.0.0.0',
    port: 8812,  //前端项目的端口号
    // https:false,
    // hotOnly: false,
    proxy: {
      '/api': {
        target: "http://localhost:8811",
        changeOrigin: true,
        pathRewrite: {
          '^/api': '' //把api这个路径截取下来
        }
      }
    }
  }

})
